SET NET CONNECTION

This command will set the machine to a specific connection.

  Syntax
SET NET CONNECTION Connection Number
SET NET CONNECTION Connection Number,Address Data
  Parameters
Connection Number
Integer
The Connection Number can be obtained by using the index of the checklist produced by the PERFORM CHECKLIST FOR NET CONNECTIONS command
Address Data
String
If you connect by TCP/IP the Address Data should be an IP and Url Address. If the connection type is MODEM, you should specify a phone number if you are dialling or leave blank if you are answering

  Returns

This command does not return a value.

  Description

The Connection Number can be obtained by using the index of the checklist produced by the PERFORM CHECKLIST FOR NET CONNECTIONS command. You can optionally specify Address Data depending on the connection type. If you connect by TCP/IP the Address Data should be an IP and Url Address. If the connection type is MODEM, you should specify a phone number if you are dialling or leave blank if you are answering. If the connection type is SERIAL, it is recommended you leave the Address Data blank to obtain the Windows Serial Configuration Dialogue Box. IPX connections require no additional Address Data.

  Example Code
perform checklist for net connections
cls
print "CONNECTIONS (Can Occur In Any Order)"
for c=1 to checklist quantity()
print c;". ";checklist string$(c)
next c
SelectionIndex=0
if checklist quantity()<>0
while SelectionIndex<1 or SelectionIndex>checklist quantity()
print : input "Select A Number>";SelectionIndex
endwhile
set net connection SelectionIndex,( IP Address or PhoneNumber )
endif
  See also

MULTIPLAYER Commands Menu
Index